﻿using Container;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DAL
{
    class ShopContextInitializer : DropCreateDatabaseAlways<ShopContext>
    {
        protected override void Seed(ShopContext context)
        {
            User us = new User(0, "McRage", "0000", "admin");
            context.Users.Add(us);
            User us1 = new User(1, "Maks", "1234", "user");
            context.Users.Add(us1);
            User us2 = new User(2, "McRage", "1111", "user");
            context.Users.Add(us2);
            User us3 = new User(3, "McRage", "2222", "user");
            context.Users.Add(us3);
            
           
            context.SaveChanges();
        }
    }
}
